package ar.com.vates.Encriptacion;

public class AlgoritmoXOR implements Algoritmo {
	
	private int num;
	

	public AlgoritmoXOR(int num) {
		super();
		this.num = num;
	}

	public int encriptar(int num) {

		return num ^this.num;
	}

	public int desencriptar(int num) {

		return this.num^num;
	}

}
